package com.wslNB.openfeign.controller;


import com.wslNB.openfeign.domain.GodWSL;
import com.wslNB.openfeign.feign.GodWSLFeginClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {


    @Autowired
    private GodWSLFeginClient godWSLFeginClient;


    @GetMapping("/godWSL/{id}")
    public GodWSL findGodWSLById(@PathVariable("id") Integer id){

        GodWSL one = godWSLFeginClient.findOne(id);
        return one;
    }









}
